package com.wave.wavesystem.serve.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class CurrentUser {

    private Long id;

    private String username;

    private String role;

    private String account;

    public CurrentUser(User user) {
        this.id = user.getId();
        this.username = user.getUsername();
        this.account = user.getAccount();
    }

}
